<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
  <head>
    <title>模板数据校验</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
   <script type="text/javascript">
  	function checkForm(){
  		var form = document.getElementById("form");
  		form.submit();
  		var submit1 = document.getElementById("submit");
  		submit1.disabled = true;
  		
  	}
  </script>
  <body>
  	<div align="center">
	    <form id="form" name="form" action="<%=request.getContextPath() %>/user/user!insert.action" method="post">
	    	<table border="0" cellpadding="0" width="50%" align="center">
	    		<tr>
	    			<td width="20%">用户名:</td><td align="left"><input name="user.userName" type="text" id="user.userName"/></td>
	    			<td width="20%">别名:</td><td align="left"><input name="user.userAlias" type="text" id="user.userAlias"/></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">密码:</td><td align="left"><input name="user.password" type="text" id="user.password"/></td>
	    			<td width="20%">身份证号码:</td><td align="left"><input name="user.cardid" type="text" id="user.cardid"/></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">确认密码:</td><td align="left"><input name="user.password2" type="text" id="user.password2"/></td>
	    			<td width="20%">年龄:</td><td align="left"><input name="user.age" type="text" id="user.age"/></td>
	    		</tr>
	    		<tr>
	    			<td width="20%">邮箱:</td><td align="left"><input name="user.email" type="text" id="user.email"/></td>
	    			<td width="20%">手机号码:</td><td align="left"><input name="user.mobilePhone" type="text" id="user.mobilePhone"/></td>
	    			
	    			
	    		</tr>
	    		<tr>
	    			<td width="20%">性别:</td><td align="left">
	    				<select name="user.balconyNum" id="user.sex">
	    					<option value="1">男</option>
	    					<option value="0">女</option>
	    				</select>
	    			</td>
	    			<td width="20%">用户类型:</td><td align="left">
	    				<select name="user.userType" id="user.userType">
	    					<option value="0">租客</option>
	    					<option value="1">房东</option>
	    				</select>
	    			</td>
	    		</tr>
				<tr align="center"> <td colspan="4"><br><input type="submit"  id="submit" value="提交" /></td></tr>
			</table>				
	    </form>
    </div>
  </body>
</html>
